package protocol

// RegisterData 注册数据
type RegisterData struct {
	HostName  string `json:"host_name"`
	HostIP    string `json:"host_ip"`
	OsType    string `json:"os_type"`
	OSArch    string `json:"os_arch"`
	OSVersion string `json:"os_version"`
}

// NewRegisterMessage 创建注册消息
func NewRegisterMessage(data RegisterData) *Message {
	return &Message{
		Event:     EvenRegister,
		Data:      data,
		Timestamp: 0,
		Sequence:  0,
	}
}

func NewRegisterResponse(AgentID int64) *Message {
	return &Message{
		Event:     EvenRegister,
		Data:      AgentID,
		Timestamp: 0,
		Sequence:  0,
	}
}
